import type { App, Plugin } from 'vue'
import MaDictColumn from '/@/components/ma-dict/ma-dict-column/index.vue'
import MaDictLabel from '/@/components/ma-dict/ma-dict-label/index.vue'
import MaDictRadio from '/@/components/ma-dict/ma-dict-radio/index.vue'
import MaDictTreeSelect from '/@/components/ma-dict/ma-dict-tree-select/index.vue'
import MaDictSelect from '/@/components/ma-dict/ma-dict-select/index.vue'
import MaDictCheckbox from '/@/components/ma-dict/ma-dict-checkbox/index.vue'


const components = [
	MaDictLabel,
	MaDictColumn,
	MaDictRadio,
	MaDictSelect,
	MaDictCheckbox,
	MaDictTreeSelect
]

const MaComponent: Plugin = {
	install(Vue: App) {
		components.forEach((component: any) => {
			Vue.component(component.name, component)
		})
	}
}

export default MaComponent
